var testRequirementStore = Ext.create(
    'LeftTreeStore',
    zuulUrl + '/' + testServiceName + '/common/testRequirement/project/' + testRequirementProject + '/' + currentUserId,
    'title',
    0);

var testRequirementCheckLogStore = Ext.create('Ext.data.Store', {
    proxy: {
        type: 'ajax',
        //url : 'http://192.168.32.254:8769/testRequirementCheck/{testReqirementId}',// 请求
        reader: {
            type: 'json'
        },
        extractResponseData: function (response) {
            var obj = response.responseJson;
            if (obj.code == 200)
                return obj.data;
        }
    }
});

var chooseTestDesignStore=Ext.create('Ext.data.TreeStore', {
    model: 'TreeModel',
    proxy: {
        type: 'ajax',
        reader: {
            type: 'json'
        },
        extractResponseData: function (response) {
            var data = response.responseJson;
            Ext.each(data, function (record) {
            	record.text=record.title;
                if(record.childrenCount==0)//如果这个节点的可显示节点数量等于0则将此文件夹设置为不可展开
                	record.expandable=false;
            });
            return data;
        }
    },
    parentIdProperty: 'parentId',
});